package work17;

import java.util.Calendar;

public class TestCalendar {
    public static void main(String[] args) {
        Calendar t = Calendar.getInstance();
        System.out.println("今天是"+ t.get(Calendar.YEAR) + "年" +(t.get(Calendar.MONTH) + 1) + "月" +t.get(Calendar.DAY_OF_MONTH) + "日");
        System.out.println("今天是星期"+(t.get(Calendar.DAY_OF_WEEK) -1));
    }
}
